// vite.config.ts
import { loadEnv } from "file:///E:/vue%E6%A1%86%E6%9E%B6/meeting/node_modules/.pnpm/registry.npmmirror.com+vite@4.3.7_@types+node@20.2.1_sass@1.62.1/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/vue%E6%A1%86%E6%9E%B6/meeting/node_modules/.pnpm/registry.npmmirror.com+@vitejs+plugin-vue@4.2.3_vite@4.3.7_vue@3.3.2/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///E:/vue%E6%A1%86%E6%9E%B6/meeting/node_modules/.pnpm/registry.npmmirror.com+unplugin-auto-import@0.16.0/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/vue%E6%A1%86%E6%9E%B6/meeting/node_modules/.pnpm/registry.npmmirror.com+unplugin-vue-components@0.24.1_vue@3.3.2/node_modules/unplugin-vue-components/dist/vite.mjs";
import { ElementPlusResolver } from "file:///E:/vue%E6%A1%86%E6%9E%B6/meeting/node_modules/.pnpm/registry.npmmirror.com+unplugin-vue-components@0.24.1_vue@3.3.2/node_modules/unplugin-vue-components/dist/resolvers.mjs";
import { viteMockServe } from "file:///E:/vue%E6%A1%86%E6%9E%B6/meeting/node_modules/.pnpm/registry.npmmirror.com+vite-plugin-mock@2.9.8_mockjs@1.1.0_vite@4.3.7/node_modules/vite-plugin-mock/dist/index.js";
import DefineOptions from "file:///E:/vue%E6%A1%86%E6%9E%B6/meeting/node_modules/.pnpm/registry.npmmirror.com+unplugin-vue-define-options@1.3.5_vue@3.3.2/node_modules/unplugin-vue-define-options/dist/vite.mjs";
import VueSetupExtend from "file:///E:/vue%E6%A1%86%E6%9E%B6/meeting/node_modules/.pnpm/registry.npmmirror.com+vite-plugin-vue-setup-extend@0.4.0_vite@4.3.7/node_modules/vite-plugin-vue-setup-extend/dist/index.mjs";
import path from "path";
import { createSvgIconsPlugin } from "file:///E:/vue%E6%A1%86%E6%9E%B6/meeting/node_modules/.pnpm/registry.npmmirror.com+vite-plugin-svg-icons@2.0.1_vite@4.3.7/node_modules/vite-plugin-svg-icons/dist/index.mjs";
var vite_config_default = ({ command, mode }) => {
  let env = loadEnv(mode, process.cwd());
  return {
    base: "./",
    plugins: [
      VueSetupExtend(),
      DefineOptions(),
      vue(),
      AutoImport({
        resolvers: [ElementPlusResolver()]
      }),
      Components({
        resolvers: [ElementPlusResolver()]
      }),
      createSvgIconsPlugin({
        iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
        symbolId: "icon-[dir]-[name]"
      }),
      viteMockServe({
        localEnabled: command === "serve"
      })
    ],
    resolve: { alias: { "@": path.resolve("./src") } },
    css: {
      preprocessorOptions: {
        scss: {
          javascriptEnabled: true,
          additionalData: '@import "./src/styles/variable.scss";'
        }
      }
    },
    // 代理跨域
    server: {
      proxy: {
        [env.VITE_APP_BASE_API]: {
          target: env.VITE_SERVE,
          // 需要代理跨域
          changeOrigin: true,
          // /api 替换
          rewrite: (path2) => path2.replace(/^\/api/, "")
        }
      }
    }
  };
};
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFx2dWVcdTY4NDZcdTY3QjZcXFxcbWVldGluZ1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRTpcXFxcdnVlXHU2ODQ2XHU2N0I2XFxcXG1lZXRpbmdcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0U6L3Z1ZSVFNiVBMSU4NiVFNiU5RSVCNi9tZWV0aW5nL3ZpdGUuY29uZmlnLnRzXCI7XG5pbXBvcnQgeyBDb25maWdFbnYsIFVzZ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